<?php
namespace Tbf\Crypto\Password;
/**
 * 在验证时,如果原有加密方案强度不够,则重新生成强度更高的方案
 * @deprecated
*/
class PasswordEnsureStrength implements PasswordInterface{
	protected $hash_plan = null;
	protected $verify_plan = null;
	function __construct(PasswordInterface $hash_plan,PasswordInterface $verify_plan){
		$this->hash_plan = $hash_plan;
		$this->verify_plan = $verify_plan;
	}
	function hash($plain){
		return $this->hash_plan->hash($plain);
	}
}